package com.doeis.core.bean;

import java.io.Serializable;
import java.sql.Timestamp;

import com.doeis.tools.DateHelper;

public class Msg implements Serializable {

	private static final long serialVersionUID = 1L;
	private boolean status = false;
	private String code;
	private String msg;
	private String url;
	private Object obj;
	private Timestamp responsetime;// 相应时间

	public Msg() {
		super();
	}

	public Msg(boolean status, String msg) {
		super();
		this.status = status;
		this.msg = msg;
	}

	public Timestamp getResponsetime() {
		if (responsetime == null) {
			responsetime = DateHelper.currentDateTime();
		}
		return responsetime;
	}

	public void setResponsetime(Timestamp responsetime) {
		if (responsetime == null) {
			responsetime = DateHelper.currentDateTime();
		}
		this.responsetime = responsetime;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

}
